package
{
    import GUI.GUIScroll;
    
    public class CustomScrollBar extends GUIScroll
    {
        
        public function CustomScrollBar(sizeX:Number, sizeY:Number, directionVertical:Boolean=true)
        {
            super(directionVertical);
                        
            setSize(sizeX, sizeY);
        }
        
        public function setSize(sizeX:Number, sizeY:Number):void
        {
            this.lessScrollButton.graphics.beginFill (0x990000, 1);
            this.lessScrollButton.graphics.drawRect  (0, 0, sizeX, 10);
            this.lessScrollButton.graphics.endFill   ();
            this.lessScrollButton.x = 0;
            this.lessScrollButton.y = 0;
            
            this.moreScrollButton.graphics.beginFill (0x990000, 1);
            this.moreScrollButton.graphics.drawRect  (0, 0, sizeX, 10);
            this.moreScrollButton.graphics.endFill   ();
            this.moreScrollButton.x = 0;
            this.moreScrollButton.y = sizeY - this.moreScrollButton.height;
            
        }
        
    }
}